'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const db = uniCloud.database();
	console.log(event.id,event);
	var res =await db.collection("opendb-news-articles").where({_id:event.id}).update({
			content:event.content
	})
	//返回数据给客户端
	return res
};
